jQuery(function($){
var mySwiper = new Swiper('.swiper-container', {
  pagination : '.swiper-pagination',
  paginationClickable :true,
  autoplay:2000,//定时
  // 如果需要分页器
  pagination: '.swiper-pagination',
})
            $('.figu').click(function(){
                $(this).addClass('footgure')
                .siblings()
                .removeClass('footgure');
                // swiper.slideTo($(this).index(), 1000)
                 // console.log( swiper)
            });

  $.ajax({
        type:"GET",
        url:"../json/Goodbeans.json",
        async:true,
        success:function(res){
          // console.log(res)
          var str = template('list_caidan',{Main:res});
          $('main').html(str);

        }
          });

   
// $(".tiao").click(function(event) {
//    window.location.href="../html/Goodbeans.html";
// });
// $("#tiaozu").click(function(event) {
//    window.location.href="../html/Goodbeans.html";
// });
});

